<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
      <%= page_title %>
    </title>
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag "jquery.jeditable.js" %>
    <%= stylesheet_link_tag "screen", :media => "screen, projection" %>
    <%= stylesheet_link_tag "print", :media => "print" %>
    <%= stylesheet_link_tag "application", :media => "screen, projection" %>
    <!--[if IE]><%= stylesheet_link_tag "ie.css", :media => "screen, projection" %><![endif]-->
  </head>
  <body class="application">
    <div class="container">
      
      <div id="header" class="span-24 bottom_rule">
        <div class="span-16">
          <%= link_to "DangerLabs", root_path, :id => 'logo' %>
          <%- if controller.is_a? AuthorizedController -%>
          <span class="huge dash">&ndash;</span>
          <%- link_to postings_path, :class => "huge grouper" do -%>
            <%= image_tag "application_view_tile.png" , :alt => "" %>Grouper
          <% end -%>
          <% end -%>
        </div>
        <%- if controller.is_a? AuthorizedController -%>
        <div class="user_info span-8 last">
          <%- if logged_in? -%>welcome, <%= link_to_function current_user.screen_name || current_user.email %> |<% end -%>
          <%= link_to "sign out", logout_path  %>
        </div>
        <% end -%>
      </div>
      
      <%= partial "layouts/flash_message" %>
      
      <div class="span-24">
        <%= yield %>
      </div>
      
      <%= partial 'layouts/footer' %>
    
    </div>
  </body>
</html>
